<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>使用浮动实现网页布局</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        header {
            width: 800px;
            height: 100px;

            margin: 0 auto;
        }

        section {
            width: 800px;
            height: 400px;

            margin: 20px auto;
        }

        footer {
            width: 800px;
            height: 100px;
            background-color: blue;
            margin: 0 auto;
        }

        header .logo {
            width: 250px;
            height: 100px;
            float: left;
            background-color: aqua;
        }

        header .denglu {
            width: 200px;
            height: 30px;
            float: right;
            background-color: brown;
        }

        .bujian {
            width: 500px;
            height: 50px;
            float: right;
            margin-top: 20px;
            background-color: chocolate;
        }
        .ad{width: 300px;height: 400px;float: left;background-color: cornflowerblue;}
        .word{width: 480px;height: 280px;float: right;background-color: darkgreen;margin-bottom: 20px;}
        ul li{list-style: none;margin-left: 20px;width: 100px;height: 100px; float: left;  background-color: darkblue;}
    </style>
</head>

<body>
    <header>
        <div class="logo"></div>
        <div class="denglu"></div>
        <div class="bujian"></div>
    </header>
    <section>
        <div class="ad"></div>
        <div class="word"></div>
        <div>
            <ul>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
            </ul>
        </div>
    </section>
    <footer></footer>

</body>

</html>